package cn.hyq.org.controller;


import cn.hyq.org.domain.Employee;
import cn.hyq.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;


@RestController
@RequestMapping("/employee")
//接口文档的注解
public class EmployeeController {
    @Autowired
    private IEmployeeService employeeService;



    /**
     * 查询所有
     * @return
     */
    @GetMapping
    public List<Employee> queryAll(){
        return employeeService.queryAll();
    }



}
